'use strict';
import React, {Component, PropTypes} from 'react';

class ComponentBox extends Component {
    constructor( props ) {
        super( props );
    }
    render() {
        let {url} = this.props.data.state;
        return (
            <div>
                {url ? <img style={{width:"100%"}} src={url} alt=""/> : null}
            </div>
        );
    }
}

ComponentBox.propTypes = {
    data:PropTypes.object.isRequired
};

export default ComponentBox;
